<?php
// Include the current config file
require_once("../includes/config.php");

// Check to see if the script is already installed
if(!isset($config['installed']))
{
	// Exit the script
	exit('PHPDugg isn\'t installed.');
}


$path = str_replace('//', '/', $_SERVER['DOCUMENT_ROOT']);
$path.= ereg_replace ("install/", "", $_SERVER['REQUEST_URI']);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>PHPDugg - Install</title>
<style type="text/css">
<!--
.style1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
}
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
}
.style16 {
	font-size: 12px;
	font-weight: bold;
}
.style17 {font-size: 16px}
.style19 {font-size: 14px}
-->
</style>
</head>

<body>
<div align="center">
 <br>
  <table width="500" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="top">  <span class="style19">PHPDugg needs a cronjob that runs every 5 minutes, select your hosting panel from one of the below, once you have finished <a href="../index.php">click here</a> <br>
        <br>
        - <a href="cron.php#cpanel">cPanel</a><br>
        - <a href="cron.php#directadmin">DirectAdmin</a><br>
        - <a href="cron.php#plesk">Plesk</a><br> 
        - <a href="cron.php#other">Other</a></span><br>
        <br>
        <br>
        <span class="style16"><br>
        <a name="cpanel"></a>        <span class="style17">cPanel</span></span><br>
        <br>
        <img src="images/cpanel_cron.gif"><br>
        <br>
        <span class="style3">1) Login to cpanel<br>
2) Go the Cron Jobs page<br>
3) Select Advanced (Unix Style) mode <br>
4) Set the Minute field to */5 <br>
5) Set the Hour field to *<br>
6) In the command to run field type </span>
        <hr size="1" noshade>
        <span class="style7">/usr/local/bin/php <?=$path;?></span>
        <hr size="1" noshade>
        <span class="style3">7) Click Save Crontab </span><br>
        <br>
        <br>
        <br>
        <span class="style16"><a name="directadmin"></a><span class="style17">DirectAdmin</span></span><br>
        <br>
        <img src="images/dpanel_cron.gif"> <br>
        <br>
        <span class="style3">1) Login to your direct panel<br>
2) Go to Advanced Tools<br>
3) Go to Cron Jobs<br>
4) Set the Minute field to */5 <br>
5) Set the Hour field to *<br>
6) In the command line field type </span>
        <hr size="1" noshade>
        <span class="style7">/usr/local/bin/php <?=$path;?></span><br>
        <hr size="1" noshade>
        <span class="style3">7) Click Add </span><br>
        <br>
        <br>
        <br>
        <span class="style16"><a name="plesk"></a><span class="style17">Plesk</span></span><br>
        <br>
        <img src="images/plesk_cron.gif" width="546" height="258"><br>
        <span class="style3"><br>
        1) Login to Plesk <br>
2) Go to Crontab<br>
3) Click &quot;Add New Task&quot; <br>
4) Set the Minute field to */5 <br>
5) Set the Hour,Day,Month &amp; Week field to *<br>
6) In the command line field type        </span>
        <hr size="1" noshade>
        <span class="style7">php
        <?=$path;?>
        </span><br>
        <hr size="1" noshade>
        <span class="style3">7) Click OK </span><br>
        <br>
        <br>
        <br>
        <br>
        <span class="style16"><a name="other"></a><span class="style17">Other</span></span>        <br>
        <br>        <span class="style3">1) If you have another control panel then please contact us and we shall do our best to give instructions<br>
2) Here is a line which may come in handy </span>
        <hr size="1" noshade>
        <span class="style7">*/5 * * * * /usr/local/bin/php <?=$path;?></span>
        <hr size="1" noshade>
        <br>
        <br>
      <Br>
    </td>
    </tr>
  </table>
  <span class="footer style1">  <br>
  <br>
  &copy; 2006 <a href="http://www.kubelabs.com/phpdugg.php">Kubelabs.com</a></span>
</div>
</body>
</html>